﻿// ===============================================================================
// DotNet.Platform 开发框架 2016 版权所有
// ===============================================================================

using System;
using DotNet.Entity;

namespace DotNet.Edu.Entity
{
    /// <summary>
    /// 安全两类人培训费支付订单
    /// </summary>
    [Table("安全两类人培训费支付订单", Name = "aqpx_pay_order")]
    public class AqpxPayOrder
    {
		/// <summary>
        /// 主键
        /// </summary>
        [PrimaryKey]
        [Column("主键",false)]
        public string id { get; set; }

		/// <summary>
        /// 姓名
        /// </summary>
		[Column("姓名")]
        public string name { get; set; }

		/// <summary>
        /// 身份证号
        /// </summary>
		[Column("身份证号")]
        public string id_card { get; set; }

		/// <summary>
        /// 手机号码
        /// </summary>
		[Column("手机号码")]
        public string phone { get; set; }

		/// <summary>
        /// 微信openid
        /// </summary>
		[Column("微信openid")]
        public string open_id { get; set; }

		/// <summary>
        /// 微信支付订单号
        /// </summary>
		[Column("微信支付订单号")]
        public string transaction_id { get; set; }

		/// <summary>
        /// 商户订单号
        /// </summary>
		[Column("商户订单号")]
        public string out_trade_no { get; set; }

		/// <summary>
        /// 订单金额
        /// </summary>
		[Column("订单金额")]
        public string total_fee { get; set; }

		/// <summary>
        /// 商品描述
        /// </summary>
		[Column("商品描述")]
        public string body { get; set; }

		/// <summary>
        /// 终端IP
        /// </summary>
		[Column("终端IP")]
        public string client_ip { get; set; }

		/// <summary>
        /// 交易起始时间
        /// </summary>
		[Column("交易起始时间")]
        public string time_start { get; set; }

		/// <summary>
        /// 交易结束时间
        /// </summary>
		[Column("交易结束时间")]
        public string time_expire { get; set; }

		/// <summary>
        /// 是否已确认交易状态
        /// </summary>
		[Column("是否已确认交易状态")]
        public short confirmed { get; set; }

		/// <summary>
        /// 交易状态SUCCESS—支付成功,REFUND—转入退款,NOTPAY—未支付,CLOSED—已关闭,REVOKED—已撤销（刷卡支付）,USERPAYING--用户支付中,PAYERROR--支付失败(其他原因，如银行返回失败)
        /// </summary>
		[Column("交易状态SUCCESS—支付成功,REFUND—转入退款,NOTPAY—未支付,CLOSED—已关闭,REVOKED—已撤销（刷卡支付）,USERPAYING--用户支付中,PAYERROR--支付失败(其他原因，如银行返回失败)")]
        public string trade_state { get; set; }

		/// <summary>
        /// 交易状态描述
        /// </summary>
		[Column("交易状态描述")]
        public string trade_state_desc { get; set; }

		/// <summary>
        /// 支付完成时间
        /// </summary>
		[Column("支付完成时间")]
        public string trade_end_time { get; set; }


        /// <summary>
        /// 支付类型
        /// </summary>
        [Column("",Exported =false)]
        public string order_type { get; set; }

        /// <summary>
        /// 支付类型
        /// </summary>
        [Column("支付类型")]
        public string order_type_text { get; set; }

        /// <summary>
        /// 记录创建时间
        /// </summary>
        [Column("记录创建时间")]
        public DateTime create_date_time { get; set; }

        /// <summary>
        /// 复制对象
        /// </summary>
        public AqpxPayOrder Clone()
        {
            return (AqpxPayOrder)MemberwiseClone();
        }
    }
}
